<template>
  <div class="action-btn-wp">
    <el-button type="text" size="small" @click.stop.prevent="handelClick(scope.index, scope.row)"><slot>订单详情</slot></el-button>
  </div>
</template>

<script>
  export default {
    name: 'actionOrderInfo',
    props:{
      scope:{
        type:Object,
        default:()=>{},
      },
      scopeId:{
        type:String,
        default:'orderNumber'
      }
    },
    methods: {
      handelClick(index, row)
      {
          this.$router.push({name:'orderInfo',query:{id:row[this.scopeId]}});
      }
    }
  }
</script>
